﻿@model IEnumerable<CVsharp.DWZMvc.Models.DSA_Grade>
<form id="pagerForm" method="post" action="/Review/List/">
    <input type="hidden" name="keyStores" value="@(ViewBag.keStores)" />
    <input type="hidden" name="keyStrings" value="@(ViewBag.keyStrings)" />
	<input type="hidden" name="pageNum" value="@(ViewBag.pageNum)" />
	<input type="hidden" name="numPerPage" value="@(ViewBag.numPerPage)" />
</form>
    <div class="pageHeader">
    <h2 style="font-size: medium">药房审核情况</h2>
        <!--<搜索栏>-->
        <form onsubmit="return navTabSearch(this);" action="/Review/List/" method="post">
        <div class="searchBar">
            <table class="searchContent">
        <tr>
            <td>
                快捷搜索：<input type="text" name="keyString"  value="@(ViewBag.keyString)"/>
            </td>
            <td>
                <label>药店：</label>
                            @Html.DropDownList("keyStore", new SelectList(ViewBag.DrugStoreSelect, "DrugStoreID", "Name"))
            </td>
            <td>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            检索</button></div>
                </div>
            </td>
        </tr>
    </table>
        </div>
        </form>
        <!--</搜索栏>-->
    </div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li class="line">line</li>
                <li><a class="icon" href="javascript:void(0);"><span>导入EXCEL</span></a></li>
            </ul>
        </div>
        <table class="table" width="100%" layouth="128">
            <thead>
                <tr>
        <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl" /></th>
        <th width="30">序号</th>
        <th width="80">药店名称</th>
        <th width="120">考核内容</th>
        <th width="80">负责人</th>
        <th width="100">考核时间</th>
        <th width="100" align="center" orderfield="accountLevel">分值</th>
                </tr>
            </thead>
            <tbody>

            @foreach (var item in Model)
            {
                CVsharp.DWZMvc.Models.yjjDBEntities db = new CVsharp.DWZMvc.Models.yjjDBEntities();
                CVsharp.DWZMvc.Models.DSA_GradeConfig gc = db.DSA_GradeConfig.Where(m => m.GradeConfigID == item.AssessmentConfigID).FirstOrDefault();
        <tr>
            <td>
                <input name="ids" value="@item.GradeID" type="checkbox">
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.GradeID)
            </td>
            <td>
                @db.DSA_DrugStore.Where(m => m.DrugStoreID == item.DrugStoreID).FirstOrDefault().Name
            </td>
            <td>
                @(gc!=null?gc.GradeContent:"")
            </td>
            <td>
                @db.DSA_DrugStore.Where(m => m.DrugStoreID == item.DrugStoreID).FirstOrDefault().ResponsiblePerson
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Remarks)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Grade)
            </td>
        </tr>
    }

            </tbody>
        </table>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                    <option value="@(ViewBag.numPerPage)">选择</option>
                    <option value="20">20</option>
                    <option value="30">30</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                </select>
                <span>条，共@(ViewBag.totalnum)条，当前显示@(ViewBag.currentpagenum)条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="@(ViewBag.totalnum)" numperpage="@(ViewBag.numPerPage)"
                pagenumshown="@(ViewBag.totalnum / ViewBag.numPerPage + 1)" currentpage="@(ViewBag.pageNum)">
                </div>
        </div>
    </div>